/**
 * 当传入call/apply/bind的是null/undefined时，自动将this绑定成全局对象
 */
function foo() {
  console.log(this)
}

foo.call(undefined) //window
foo.apply(null) //window
var bar = foo.bind(null)
bar() //window
